import React, {useContext} from 'react';
import './index.css';

import ProductItem from "../ProductItem";
import useLocalContext from "../../tools/useLocalContext"
const ProductList = (props) => {
  const {state} = useContext(useLocalContext())
  return <div className='listContainer'>
    <ProductItem
      // list={props.list}
      colList={props.colList}
      pList={state.detailList}
    ></ProductItem>
    
  </div>
}

export default ProductList
